package com.blueocean_health.care.management.em;

import com.blueocean_health.care.management.common.base.string.StringUtils;

/**
 * 扎帐状态
 * 
 * @todo
 * @author 张亚林
 * @date 2018年8月20日 下午6:35:34
 */
public enum LashStatusEnum {
	_0("0", "未扎帐"), _1("1", "已扎帐"),;

	private String key;
	private String val;

	private LashStatusEnum(String key, String val) {
		this.key = key;
		this.val = val;
	}

	public String getKey() {
		return key;
	}

	public String getVal() {
		return val;
	}

	/**
	 * 根据key值查value
	 * 
	 * @param value
	 * @return
	 */
	public static String ValOfKey(String key) {
		if (!StringUtils.isEmpty(key)) {
			LashStatusEnum[] businessModeEnums = values();
			for (LashStatusEnum businessModeEnum : businessModeEnums) {
				if (businessModeEnum.getKey().equals(key)) {
					return businessModeEnum.getVal();
				}
			}
		}
		return null;
	}

}
